/* 将container的最大宽设置为1280 */
@media screen and(min-width: 1280px) {
    .container{
        width: 1280px;
    }
}
*{
    margin: 0;
    padding: 0;
}
body{
    background: #f5f5f5;
}
.container{
    background: #fff;
}
ul{
    list-style: none;
}
a{
    text-decoration: none;
    color: #fff;
}
a:hover{
    color: #fff;
    text-decoration: none;     
}
header{
    width: 100%;
    padding-left: 0!important;
}
.logo{
    background: pink;
}
.logo img{
    /* width: 100%; */
    /* logo图片不需要缩放 */
    max-width: 100%;
    /* 水平居中 */
    display: block;
    margin: 0 auto;
}
/* 1.进入超小屏幕下,就隐藏logo图片 */
/* 2.我们事先准备一个盒子,在logo里面,平时不显示,在超小屏幕下显示 */
.logo span{
    display: block;
    height: 50px;
    line-height: 50px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 18px;
}
.nav{
    background: #f6f6f6;
    border-bottom: 1px solid #ccc;
}
i{
    font-family: normal;
    margin-right: 5px;
}
.nav ul{
    border-bottom: 1px solid #ccc;
}
.nav a{
    display: block;
    text-decoration: none;
    height: 50px;
    line-height: 50px;
    padding-left: 25px;
    color: #ada7ab;
    font-size: 16px;
    background: #f6f6f6;
}
.nav a:hover{
    background: #fff;
    color: #000;
}
.nav span{
    font-size: 16px;
}
/* 超小屏幕和小屏幕时就让里面的li浮动 */
/* 在小屏幕和超小屏幕下就改变input的宽 */
@media screen and (max-width:991px){
    .nav ul li{
        float: left;
        width: 20%;
        border-bottom: 1px solid #ccc;
    }
    .nav li a{
        height: 40px;
        line-height: 40px;
    }
    .nav .search input[type=text]{
        width: 85%;
    }
    .nav .search input[type=submit]{
        width: 10%;
        margin: 10px 0;
    }
}
/* 超小屏幕时字体会变小 */
@media screen and (max-width:768px){
    .nav li span{
        font-size: 14px;
    }
    .nav ul li a{
        padding-left: 15px;
    }
    .publish h3{
        font-size: 14px;
    }
    .new .small{
        margin-top: 10px;
    }
}
.search{
    width: 100%;
}
.search input[type=text]{
    outline: none;
    width: 90px;
    height: 30px;
    padding: 16px 5px;
    margin-left: 15px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-right: 0;
}
.search input[type=submit]{
    background: #fd7567;
    border: 1px solid #ccc;
    margin: 10px 0 20px;
    width: 35px;
    height: 34px;
    font-size: 14px;
    padding: 0;
    color: #fff;
} 
article{
    width: 100%;
    margin-top: 10px;
    padding-left: 0!important; 
}
.new{
    padding-left: 0;
    padding-right: 15px;
}
.big{
    height: 310px;
    padding-right: 0!important;
    overflow: hidden;
}
/* 轮播图部分 */
.carousel{
    width: 100%;
    height: 310px;
}
.carousel-control.right{
    margin-top: 0!important;
}
.carousel-control.left{
    padding-left: 0;
}
.big .item{
    position: relative;
    height: 310px;
}
.big .carousel-caption{
    position: absolute;
    bottom: 0;
    left: 0;
    height: 50px;
    line-height: 14px;
    width: 100%;
    text-align: left;
    font-size: 14px;
    color: #fff;
    background: rgba(0,0,0,0.7);
    text-indent: 15px;
}
.small{
    height: 310px;
}
.small li{
    height: 150px;
    position: relative;
}
.small span{
    position: absolute;
    left: 10px;
    bottom: 0;
    width: 100%;
    height: 47px;
    font-size: 10px;
    padding: 0 15px;
    background: rgba(0,0,0,0.7);
}
.small li:nth-child(-n+2){
    margin-bottom: 10px;
}
.small li:nth-child(odd){
    padding-left: 10px;
    padding-right: 0;
    overflow: hidden;
}
.small li:nth-child(even){
    padding-left: 10px;
    padding-right: 0;
    overflow: hidden;
}
.small img{
    width: 100%;
    height: 100%;
}
/* 发布模块样式 */
.publish{
    padding-left: 15px;
    margin-top: 10px;
    border-top: 1px solid #ccc;
}
.publish .row{
    border-bottom: 1px solid #ccc;
}
.publish a{
    display: block;
}
.left,.right{
    display: block;
}
.left p:nth-of-type(2){
    font-size: 15px;
}
.left p:nth-of-type(odd){
    font-size: 14px;
    color: #ccc;
}
.right{
    margin-top: 15px;
}
.right img{
    width: 100%;
    height: 100%;
}

aside{
    margin-top: 10px;
    padding-left: 15px;
}
.one{
    height: 150px;
}
.one img{
    width: 100%;
    height: 100%;
}
.two{
    position: relative;
    display: block;
    margin-top: 10px;
    margin-left: 0px;
    padding: 0 15px;
    border: 1px solid #ccc;
}
.two h5{
    position: absolute;
    top: -10px;
    left: 15px;
    width: 69px;
    height: 33px;
    line-height: 33px;
    text-align: center;
    color: #fff;
    background: #ff5d51;
}
.two h3{
    width: 100%;
    margin-top: 45px;
    color: #d46e7b;
}
.two p{
    display: block;
    width: 100%;
    font-size: 12px;
    color: #ccc;
}